Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Markdown and plaintext output systems #929

Merged
merged 5 commits into from
Dec 11, 2024
Merged

Add Markdown and plaintext output systems #929

merged 5 commits into from
Dec 11, 2024

Conversation

pelikhan
Copy link
Member

@pelikhan pelikhan commented Dec 10, 2024

Introduce systems for Markdown and plaintext output, enhancing the response capabilities of the application.


  • Introduction of new Markdown output system (system.output_markdown) 📝
    • Provides a structured format for responses
  • Modification to default systems configuration 🔄
    • Adds system.output_markdown to the list of responses
    • Maintains consistency and flexibility for different response formats
  • Simplification in existing system descriptions 🎉

generated by pr-describe

Copy link

LGTM 🚀

generated by pr-review

@@ -57,7 +57,6 @@ export const VISION_MODEL_ID = "vision"
export const DEFAULT_FENCE_FORMAT: FenceFormat = "xml"
export const DEFAULT_MODEL = "openai:gpt-4o"
export const DEFAULT_MODEL_CANDIDATES = [
"azure:gpt-4o",
"azure_serverless:gpt-4o",
DEFAULT_MODEL,
"google:gemini-1.5-pro-latest",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The export DEFAULT_MODEL_CANDIDATES is unused and can be removed.

generated by pr-review-commit unused_export

@@ -5,7 +5,6 @@ import type {
ImageContent,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The import of YAMLStringify from "./yaml" is unused and can be removed.

generated by pr-review-commit unused_import

@@ -36,6 +36,7 @@ export function resolveSystems(
// Default systems if no responseType is specified
if (!script.responseType) {
systems.push("system")
systems.push("system.output_markdown")
systems.push("system.explanations")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The push operation for "system.output_markdown" is unnecessary as it's already included in the default systems.

generated by pr-review-commit unnecessary_push

@@ -58,7 +58,7 @@ This is what the `basic.prompty` file compiles to:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The model name has been changed from "azure:gpt-4o" to "openai:gpt-4o". Ensure that the new model is compatible and available in your environment.

generated by pr-docs-review-commit model_change

$`- You are concise.
- Answer in markdown.
`
$`- You are concise.`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The markdown syntax for code blocks should be consistent. Use triple backticks (```) instead of ````` to define code blocks.

generated by pr-docs-review-commit markdown_syntax


`````


### `system.planner`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The headings for the new sections should be consistent with the existing headings. Use ## instead of ### for subheadings.

generated by pr-docs-review-commit markdown_heading


`````


### `system.planner`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code snippets within the new sections are not properly formatted. Ensure that each snippet is enclosed in triple backticks (```) and has a language identifier if applicable.

generated by pr-docs-review-commit markdown_code_snippet


`````


### `system.planner`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The links within the code snippets should be consistent with the existing documentation. Ensure that all links are properly formatted and accessible.

generated by pr-docs-review-commit markdown_link


`````


### `system.planner`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tables within the new sections are not properly formatted. Ensure that each table is enclosed in triple backticks (```) and has a header row if applicable.

generated by pr-docs-review-commit markdown_table


`````


### `system.planner`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The lists within the new sections should be consistent with the existing documentation. Ensure that all lists are properly formatted and have proper indentation.

generated by pr-docs-review-commit markdown_list


`````


### `system.planner`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The quotes within the code snippets should be consistent with the existing documentation. Ensure that all quotes are properly formatted and do not interfere with the syntax of the code.

generated by pr-docs-review-commit markdown_quote

$`- You are concise.
- Answer in markdown.
`
$`- You are concise.`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The markdown syntax for code blocks should be consistent. Use triple backticks (```) instead of ````` to define code blocks.

generated by pr-docs-review-commit markdown_syntax


`````


### `system.planner`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The structure of the documentation is inconsistent. The new sections system.output_markdown and system.output_plaintext are not properly formatted and do not follow the existing structure of the document.

generated by pr-docs-review-commit structure_error


`````


### `system.planner`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The headings for the new sections should be consistent with the existing headings. Use ## instead of ### for subheadings.

generated by pr-docs-review-commit markdown_heading


`````


### `system.planner`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code snippets within the new sections are not properly formatted. Ensure that each snippet is enclosed in triple backticks (```) and has a language identifier if applicable.

generated by pr-docs-review-commit markdown_code_snippet


`````


### `system.planner`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The links within the code snippets should be consistent with the existing documentation. Ensure that all links are properly formatted and accessible.

generated by pr-docs-review-commit markdown_link


`````


### `system.planner`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tables within the new sections are not properly formatted. Ensure that each table is enclosed in triple backticks (```) and has a header row if applicable.

generated by pr-docs-review-commit markdown_table


`````


### `system.planner`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The lists within the new sections should be consistent with the existing documentation. Ensure that all lists are properly formatted and have proper indentation.

generated by pr-docs-review-commit markdown_list


`````


### `system.planner`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The quotes within the code snippets should be consistent with the existing documentation. Ensure that all quotes are properly formatted and do not interfere with the syntax of the code.

generated by pr-docs-review-commit markdown_quote

@pelikhan pelikhan merged commit 610a432 into main Dec 11, 2024
11 checks passed
@pelikhan pelikhan deleted the systemplaintext branch December 11, 2024 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant